//
//  LXOfficialActivitiesCell.m
//  LXLessDemo
//
//  Created by LX on 16/2/10.
//  Copyright © 2016年 LX. All rights reserved.
//

#import "LXOfficialActivitiesCell.h"
#import "LXTransverseSsrollView.h"

@implementation LXOfficialActivitiesCell

- (void)awakeFromNib {
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    // Configure the view for the selected state
}
#pragma mark ==========官方活动
-(void)settingOfficialActivitiesWithDatas:(NSArray *)datas{
    LXTransverseSsrollView *view = [[LXTransverseSsrollView alloc] initWithFrame:CGRectMake(0, 0, CGRectGetWidth([UIScreen mainScreen].bounds), CGRectGetHeight(self.bounds))];
    [view settingOfficialActivesViewWithDatas:datas];
    view.selectBlock = ^(NSString *objId){
        self.selectBlock(objId);
    };
    [self.contentView addSubview:view];
}
@end
